
//mymvc version
define('MY_MVC', '1.0');

/**
*------------------------------
*load the global functions
*------------------------------
*/
require(BASEPATH.'core/Common.php');

/**
*------------------------------
*load the framework constants
*------------------------------
*/
if(define('ENVIRONMENT') && file_exists(APPPATH.'config/'.ENVIRONMENT.'/constants.php')) {
	require(APPPATH.'config/'.ENVIRONMENT.'/constants.php');
} else {
	require(APPPATH.'config/constant.php');
}

/**
*重载subclass_prefix
*/
if(isset($assign_to_config['subclass_prefix']) && $assign_to_config['subclass_prefix'] != '') {
	get_config(array('subclass_prefix' => $assign_to_config['subclass_prefix']));
}

/**
*基准测试
*/
$BM = &load_class('Benchmark', 'core');
$BM->mark('start');
$BM->mark('end');

/*
* instantiate the hooks class 钩子
*/
$EXT = &load_class('Hooks', 'core');
//Instantiate the hooks class
$EXT->_call_hook('');


/**
* Instantiate the config class
*/

$GFG = &load_class('Config', 'core');

if(isset($assign_to_config)) {
	$CFG->_assign_to_config($assign_to_config);
}

/**
* instantiate the UTF-8 class
*/

$UNI = &load_class('Utf8', 'core');

/**
*Instantiate the routing class and set the routing
*/

$RTR = &load_class('Router', 'core');
$RTR->_set_routing();








